import request from '@/utils/request';
export const selectAllHomeStay  = (params: any) => {
    return request({
      url: `api/selectAllHotel`,
      method: 'get',
    });
  };
  export const selectAllHomeStaybyID  = (fid: any) => {
    return request({
      url: `api/selectAllHotelByID?fid=${fid}`,
      method: 'get',
    });
  };

  export const uploadHomeStay  = (params: any) => {
    return request({
      url: `api/launchHotel`,
      method: 'post',
      data: params
    });
  };
  export const editHomeStay  = (params: any) => {
    return request({
      url: `api/editHotel`,
      method: 'post',
      data: params
    });
  };
  export const deleteHomeStay  = (hid: any) => {
    return request({
      url: `api/deleteHotel?hid=${hid}`,
      method: 'get',
    });
  };
  export const bookHomeStay  = (params: any) => {
    return request({
      url: `api/bookHotel`,
      method: 'post',
      data:params
    });
  };
  export const bookHotelRecords=(uid:any)=>{
    return request({
      url: `api/bookHotelRecords?uid=${uid}`,
      method: 'get',
    });
  }
